Fix - Calculate missing comment for category on the client#62124
Conversation
|
@FitseTLT Thanks for the PR. When offline, we have an issue where the 62124-receiptrequired-issue.mp4 |
|
Thanks @FitseTLT for the update. But it looks like there is some weird edge case that results in a dummy receipt. Looks like some cleanup was not complete. And I do not know what exactly caused this as I was randomly testing the receipt addition/removal. But a signout/signin resolves this as the onyx is cleared. Any idea why this comes up? 62124-edge-case-issue.mp4 |
Couldn't reproduce it. I hardly believe it could be related to our PR. 2025-05-20.23-12-40.mp4 |
I can reproduce this consistently now. We just need to go offline and then delete an existing receipt. If we update the amount again, we will face the issue of a dummy receipt. But I also agree that it is already in production and unrelated to our PR. However, since our use case demands to show 62124-ios-hybrid-001.mp4 |
|
Yes the root cause is due to not resetting the receipt prop here Lines 10031 to 10033 in cc85c2a Which in turn made getUpdatedTransaction to add the open receipt state hereApp/src/libs/TransactionUtils/index.ts Lines 510 to 519 in cc85c2a Now it is fixed. But it is totally out of scope and should be considered in the payment as we fixed a totally different bug which of course is worthy of fixing. |
Thanks @FitseTLT for the fix. Will review soon. Regarding the payment, we can request the same at the time of BZ checklist. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari62124-web-chrome-002.mp4MacOS: Desktop62124-desktop-001.mp4Android: NativeNote: Couldn't test receipts as I had problem on my simulator accessing the folders but I think this is fine as the issue is not platform dependent.62124-android-hyrbid-001.mp4Android: mWeb Chrome62124-mweb-chrome-001.mp4iOS: NativeNote: Couldn't test receipts as I had problem on my simulator accessing the folders but I think this is fine as the issue is not platform dependent.62124-ios-hybrid-002.mp4iOS: mWeb Safari62124-mweb-safari-001.mp4 |
rojiphil
left a comment
There was a problem hiding this comment.
@MarioExpensify Changes LGTM and works well too.
All yours for review. Thanks.
|
Nice!! Changes looks good! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
| transaction.comment = {comment: ''}; | ||
| }); | ||
|
|
||
| it.only('should add category specific violations', () => { |
There was a problem hiding this comment.
@FitseTLT Same thing happened here with it.only() 😁
There was a problem hiding this comment.
Sorry, I'm missing the context here, what happened @tgolen?
There was a problem hiding this comment.
We are merging the fix don't worry 👍
There was a problem hiding this comment.
@MarioExpensify sorry, the context comes from another PR were it.only() was accidentally used also. Basically, when you use it.only(), then Jest will ONLY run that one test. It's great for debugging and developing locally, but it's also quite hazardous if it gets merged because it skips all the other tests in this file.
There was a problem hiding this comment.
Thank you!! I wasn't aware of that, will keep an eye for other usages that may show up!
|
🚀 Deployed to staging by https://github.com/MarioExpensify in version: 9.1.55-0 🚀
|
|
🚀 Deployed to staging by https://github.com/MarioExpensify in version: 9.1.56-2 🚀
|
|
🚀 Deployed to staging by https://github.com/MarioExpensify in version: 9.1.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.1.58-4 🚀
|
Details
Fixed Issues
$ #61790
PROPOSAL: #61790 (comment)
Tests
Precondition:
Workspace with Rules enabled
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
2025-05-15.22-18-33.mp4
Android: mWeb Chrome
2025-05-15.22-19-38.mp4
iOS: Native
2025-05-15.19-01-42.mp4
iOS: mWeb Safari
2025-05-15.19-00-52.mp4
MacOS: Chrome / Safari
2025-05-15.18-53-24.mp4
MacOS: Desktop
2025-05-15.18-58-37.mp4